{adminMenuBar}
<style>
.accessTable {
	border-width: 1px;
	border-spacing: 0px;
	border-style: inset;
	border-color: gray;
	border-collapse: collapse;
	background-color: white;
}

.accessTable th {
	border-width: thin;
	padding: 5px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius:;
}

.accessTable td {
	border-width: thin;
	padding: 5px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius:;
}
</style>
<h3>API Access</h3>
<table width="100%">
	<tr>
		<td width="550" valign="top">
			<table class="accessTable" width="500" border="0"
				style="margin-top: 10px;">
				<tr>
					<th align="center">ID</th>
					<th align="left">Name</th>
					<th align="left">Partner</th>
					<th align="left">Comment</th>
					<th align="left">Token</th>
					<th></th>
				</tr>
				{accessList}
			</table>
		</td>
		<td valign="top" style="padding-top: 10px;">
			<b>Add Application:</b>
			<form action="/admin/manageApiAccess" method="POST">
			<input type="hidden" name="randomKey" value="{randomKey}">
			<input type="hidden" name="action" value="addAccess">
			<table width="100%">
				<tr>
					<td align="right">Application Name*:</td>
					<td>
						<input type="text" name="appName" id="appName">
					</td>
				</tr>
				<tr>
					<td align="right">Partner ID*:</td>
					<td>
						<input type="text" name="partnerId" id="partnerId" value="0">
					</td>
				</tr>
				<tr>
					<td align="right">Comment:</td>
					<td>
						<input type="text" name="appComment" id="appComment">
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<input type="submit" value="Add Application">
					</td>
				</tr>
			</table>
			</form>
			
			<b>Change Partner:</b>
			<form action="/admin/manageApiAccess" method="POST">
			<input type="hidden" name="randomKey" value="{randomKey}">
			<input type="hidden" name="action" value="saveAccess">
			<table width="100%">
				<tr>
					<td align="right">Access ID*:</td>
					<td>
						<input type="text" name="accessId" id="accessId">
					</td>
				</tr>
				<tr>
					<td align="right">Partner ID:</td>
					<td>
						<input type="text" name="partnerId" id="partnerId" value="0">
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<input type="submit" value="Change Partner">
					</td>
				</tr>
			</table>
			</form>
		</td>
	</tr>
</table>


